<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<table class="display" id="example">
    <thead>
    <tr>
        <th>姓名</th>
        <th>部门</th>
        <th>岗位</th>
        <th>职等</th>
        <th>七月</th>
        <th>八月</th>
        <th>九月</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>

    <s:if test="#request.works==null || #request.works.size==0">
        <tr class="gradeX">
            <td colspan="8">暂无数据</td>
        </tr>
    </s:if>
    <s:else>
        <s:iterator value="#request.works" var="emp" status="sta">
            <s:if test="#sta.even">
                <tr class="gradeA">
            </s:if>
            <s:else>
                <tr class="gradeC">
            </s:else>
            <td>${emp.baseId.name}</td>
            <td>${emp.organization.fullName}</td>
            <td>${emp.duty.dutyName}</td>
            <td>${emp.grade.gradeName}</td>
            <td>--</td>
            <td>--</td>
            <td>--</td>
            <td><a class="button" href="#exam/annualview.xhtml?empId=${emp.id}&dutyId=${emp.duty.id}"><span
                    style="background:url(${ctx}/images/img/chart_curve.png)" class="icon">&nbsp;</span>查看全年分数</a>
            </td>
            </tr>
        </s:iterator>
    </s:else>
    </tbody>
</table>

<p>
    <%@ include file="/WEB-INF/pages/common/main_orgtab_pager.jsp" %>
</p>